/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '@/utils/request';

export interface LoginParamsType {
  mobile: string;
  captcha: string;
}

export interface LoginParamsCaptchaType {
  mobile: string;
  userType: string;
}

export async function fakeAccountLogin(params: LoginParamsType) {
  return request('/Api/User/Login/loginByCode', {
    method: 'POST',
    data: params,
  });
}

export async function getFakeCaptcha(params: LoginParamsCaptchaType) {
  return request('/Api/User/Login/sendVerifyCode', {
    method: 'POST',
    data: params,
  });
}
